package com.cy.util;

import com.cy.service.QuartzService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.servlet.HandlerExceptionResolver;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by PVer on 2017/7/21.
 */
public class ExceptionUtil implements HandlerExceptionResolver{

    private final Logger logger = LoggerFactory.getLogger(ExceptionUtil.class);
    @Override
    public ModelAndView resolveException(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) {
        logger.info("报错了================="+ ex.getMessage() + "================================");
        return null;
    }
}
